let fs = require('fs');

fs.writeFile('./test.txt', '你在干什么', (err) => {
    if (err === null) {
        console.log('写入成功')
    } else {
        console.log(err)
    }
})